home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000364_harfst@cms-stl.com_Mon Feb 11 13:18:05 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  76 lines

  1. Article: 13208 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!iad-peer.news.verio.net!news.verio.net!washdc3-snh1.gtei.net!news.gtei.net!feeder.qis.net!sn-xit-02!supernews.com!postnews1.google.com!not-for-mail
  3. From: harfst@cms-stl.com (David L. Harfst)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: if syntax change
  6. Date: 11 Feb 2002 09:43:14 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 57
  9. Message-ID: <26dc2188.0202110943.62504aec@posting.google.com>
  10. References: <26dc2188.0202081336.79eb8459@posting.google.com> <a41het$1na$1@watsol.cc.columbia.edu>
  11. NNTP-Posting-Host: 66.136.168.97
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 1013449395 7616 127.0.0.1 (11 Feb 2002 17:43:15 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 11 Feb 2002 17:43:15 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13208
  18.  
  19. Nice thought.  Unfortunetly that's not the case:
  20.  
  21. me@lionel:~/modem>/bin/sh -x modem
  22. + MODEM=FAST
  23. + export MODEM
  24. + MDEVICE=/dev/ttyS0
  25. + export MDEVICE
  26. + SPEED=14400
  27. + export SPEED
  28. + /usr/cms/harfst/modem/kermit/wermit -y
  29. /usr/cms/harfst/modem/modem.ini
  30. ?Invalid:   xif EQUAL "\$(SPEED)" "14400" {,    set modem command
  31. init-string 'AT&F%S0*M10*W4M0X6V1\{13}'
  32. Command stack:
  33.   3. Macro : FastBlazer
  34.   2. Macro : InitTransfer
  35.   1. File  : /home/harfst/modem/modem.ini (line 615)
  36.   0. Prompt: (top level)
  37. ?Invalid:   } 
  38. Command stack:
  39.   3. Macro : FastBlazer
  40.   2. Macro : InitTransfer
  41.   1. File  : /home/harfst/modem/modem.ini (line 615)
  42.   0. Prompt: (top level)
  43. C-Kermit 8.0.200, 12 Dec 2001, for Linux
  44.  Copyright (C) 1985, 2001,
  45.   Trustees of Columbia University in the City of New York.
  46. Type ? or HELP for help.
  47. (/home/harfst/modem/) C-Kermit>
  48.  
  49.  
  50. fdc@columbia.edu (Frank da Cruz) wrote in message news:<a41het$1na$1@watsol.cc.columbia.edu>...
  51. > In article <26dc2188.0202081336.79eb8459@posting.google.com>,
  52. > David L. Harfst <harfst@cms-stl.com> wrote:
  53. > : I have the following block of code which runs fine on 
  54. > : C-Kermit 6.0.192 on HP-UX 10.20:
  55. > : 
  56. > :   xif EQUAL \$(SPEED) 14400 {
  57. > :     # +MS=10 - Limits the connection speed to 14.4 KBaud
  58. > :     set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  59. > :   }
  60. > : 
  61. > : I'm trying to port this script to Linux, on which I'm
  62. > : running C-Kermit 8.0.200 and RedHat 7.2.
  63. > : 
  64. > : ?Invalid:   xif EQUAL \$(SPEED) 14400 {,   set modem command
  65. > : Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  66. > :
  67. > I think the problem is that the environment variable SPEED is not
  68. > defined.  Thus a field is missing.  You could do it this way:
  69. >   xif EQUAL "\$(SPEED)" "14400" {
  70. >     # +MS=10 - Limits the connection speed to 14.4 KBaud
  71. >     set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  72. >   }
  73. > - Frank
  74.